<ion-view view-title="实名认证"  hide-tabs="true">
	<ion-nav-buttons side="right">
		<a class="button button-small button-clear button-stable" href="#/tab/login">个人中心 ></a>
	</ion-nav-buttons>
	<ion-content class="padding">
		<form name="theForm" novalidate="novalidate">
			<div class="list">
				<div class="row">
					<div class="col">
						<label class="item item-input">
							<span class="input-label">真实姓名</span>
							<input type="text" name="nickname" ng-model="realname.realname" placeholder="请填写真实姓名" required>
						</label>
					</div>
				</div>
				<div class="row">
					<div class="col">
						<label class="item item-input">
							<span class="input-label">身份证号码</span>
							<input type="text" name="nickname" ng-model="realname.idcard" placeholder="请填写身份证号码" required>
						</label>
					</div>
				</div>
				<div class="row">
					<div class="col">
						<label class="item item-select">
							<span class="input-label">所在学校</span>
							<select name="schoolname" ng-model="realname.school" required ng-change="surveySelect()"
							        ng-options="cat.catname group by cat.optgroup for cat in school track by cat.catid">
								<option selected value="">--请选择所在学校--</option>
							</select>
						</label>
					</div>
				</div>
				<div class="row">
					<div class="col">
						<label class="item item-input">
							<span class="input-label">入学时间</span>
							<input type="date" name="rs_time" ng-model="realname.rs_time" placeholder="请填写入学时间" required>
						</label>
					</div>
				</div>
				<div class="row">
					<div class="col">
						<label class="item item-select">
							<span class="input-label">所学学制</span>
							<select name="educational" ng-model="realname.educational" required>
								<option value="" selected>--请选择所学学制--</option>
								<option value="yl">专科</option>
								<option value="al">本科</option>
								<option value="cg">硕士</option>
								<option value="cg">博士</option>
							</select>
						</label>
					</div>
				</div>
				<div class="row">
					<div class="col">
						<label class="item item-input">
							<span class="input-label">所学专业</span>
							<input type="text" name="subject" ng-model="realname.subject" placeholder="请填写所学专业" required>
						</label>
					</div>
				</div>
				<div class="row">
					<div class="col">
						<label class="item item-input">
							<span class="input-label">学籍学号</span>
							<input type="text" name="student_card" ng-model="realname.student_card" placeholder="请填写学籍学号" required>
						</label>
					</div>
				</div>
				<div class="row">
					<div class="col">
						<label class="item item-input">
							<span class="input-label">所住宿舍</span>
							<input type="text" name="dormitory" ng-model="realname.dormitory" placeholder="请填写所住宿舍" required>
						</label>
					</div>
				</div>
				<div class="row">
					<div class="col">
						<label class="item item-select">
							<span class="input-label">所属尽调员</span>
							<select name="survey" ng-model="realname.survey" required ng-options="cat.nickname for cat in survey track by cat.survey_id">
								<option selected value="">--请选择所属的尽调员--</option>
							</select>
						</label>
					</div>
				</div>
				<div class="row">
					<div class="col">
						<label class="item item-input">
							<span class="input-label">父母手机</span>
							<input type="tel" name="parent_tel" ng-model="realname.parent_tel" placeholder="请填写父母的联系手机"
							       ng-pattern="/^1[3|4|5|7|8][0-9]\d{4,8}$/" required>
						</label>
					</div>
				</div>
				<div class="row">
					<div class="col">
						<label class="item item-input">
							<span class="input-label">身份证正面</span>
							<div upload-widget="idcard1" for-src="{{realname.idcard_url_1}}"></div>
						</label>
					</div>
				</div>
				<div class="row">
					<div class="col">
						<label class="item item-input">
							<span class="input-label">身份证背面</span>
							<div upload-widget="idcard2" for-src="{{realname.idcard_url_2}}"></div>
						</label>
					</div>
				</div>
				<div class="row">
					<div class="col">
						<label class="item item-input">
							<span class="input-label">学生证照片</span>
							<div upload-widget="xscard" for-src="{{realname.student_card_url}}"></div>
						</label>
					</div>
				</div>
				<div class="row">
					<div class="col">
						<div class="list list-normal">
							<button class="button button-full button-energized" ng-click="submit()" ng-disabled="!theForm.$valid">实名认证</button>
						</div>
					</div>
				</div>
			</div>
		</form>
	</ion-content>
</ion-view>